Conversation
|
Thanx @jli2025 i’ll have a look asap |
|
Hi @pvgenuchten I just added a commit to fix the identifier issue (when there is no pids) as we discussed. |
|
Code looks really nice @jli2025, some small comments:
|
06ba553 to
82cc422
Compare
|
@jli2025 Can you extend the plugin to make |
8514419 to
9c41c48
Compare
pvgenuchten
left a comment
There was a problem hiding this comment.
operational now, added a import test
tomkralidis
left a comment
There was a problem hiding this comment.
Great work! Some additional comments/change requests.
| mcf['metadata']['hierarchylevel'] = instance_type_ | ||
|
|
||
| date_of_collection = metadata_.get('dateOfCollection') | ||
| if date_of_collection: |
There was a problem hiding this comment.
Can we test with if date_of_collection is not None:? Needs to be applied a few places in this function where a .get() was called.
There was a problem hiding this comment.
is this still relevant, or maybe i don't fully understand...
There was a problem hiding this comment.
if date_of_collection: -> if date_of_collection is not None:
|
actually, maybe we are too friendly here... we should also have a clear case indicating: "This json is not in OpenAire format", else it would parse any json and return an almost empty mcf... in case actually, the openaire is totally not considered yet when using autodetect, an update is needed elsewhere? |
d5392a4 to
8fb4cd8
Compare
- do not require results wrapper - add import test
|
rebased to main... resolved conflicts... anything pending? |
This PR adds support for openaire metadata. It only supports import (openaire -> mcf).
It can use used for metadata record from the new openaire api: OpenAIRE Graph API
An example openaire metadata record: https://api.openaire.eu/graph/v2/researchProducts?pid=10.3390/proceedings2019030057